package XuanZeJieGou;

//Switch 比较字符串
public class SwitchDemo2 {
    public static void main(String[] args) {
        String name = "心动新新呀";
        switch(name){
            case"顾新宇":
                System.out.println("顾新宇");
            break;
            case"心动新新呀":
                System.out.println("心动新新呀");
                break;
             default://都不满足走default
                 System.out.println("你弄啥了");
        }
    }
}
